package com.heima.wemedia.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.heima.model.common.dtos.ResponseResult;
import com.heima.model.wemedia.dtos.WmListVoDto;
import com.heima.model.wemedia.dtos.WmNewsDto;
import com.heima.model.wemedia.dtos.WmNewsPageReqDto;
import com.heima.model.wemedia.pojos.WmNews;
import freemarker.template.TemplateException;
import net.sourceforge.tess4j.TesseractException;

import java.io.IOException;

public interface WmNewsService extends IService<WmNews> {

    ResponseResult findAll(WmNewsPageReqDto dto);

    ResponseResult submitNews(WmNewsDto dto) throws IOException, TesseractException, TemplateException;

    ResponseResult delNews(Integer id);

    ResponseResult downOrUp(WmNewsDto wmNewsDto);

    ResponseResult listVo(WmListVoDto wmListVoDto);

    ResponseResult oneVo(Integer id);
}
